package com.xigua.xcar.net;

public interface OnlineAppHttpRequestListener {
	public static final int HTTP_RESULT_OK = 0;
	public static final int HTTP_RESULT_NETWORK_ERROR = -1;
	public static final int HTTT_RESULT_CONNECT_TIMEOUT = -2;
	public static final int HTTT_RESULT_SOCKET_TIMEOUT = -3;
	public static final int HTTP_RESULT_SERVER_ERROR = -4;
	public static final int HTTP_RESULT_USER_CANCLE = -5;
	public static final int HTTP_RESULT_OTHER_ERROR = -6;	
	
	abstract boolean onHttpRequestStart(int resultCode);
	
	abstract boolean onHttpRequestComplete(int resultCode, int serverRespCode, String response);

	abstract boolean onHttpRequestCancle(int resultCode);

	abstract boolean onHttpRequestError(int resultCode);
}
